package com.huoniu.service.user;

import com.alibaba.dubbo.config.annotation.Service;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.huoniu.facade.entity.user.UserEntity;
import com.huoniu.mapper.user.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@org.springframework.stereotype.Service
@Service(version = "1.0.0", interfaceClass = UserService.class)
public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public Integer countUser() {
        return userMapper.countUser("王");
    }

    @Override
    public List<UserEntity> getUserList(String name, int page, int pageSize) {
        return userMapper.getUserPage(name,page,pageSize);
    }

}
